package com.yhn.hxds.dr.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 钱包表
 *
 * @author yhnyhn123
 * @TableName tb_wallet
 */
@TableName(value = "tb_wallet")
@Data
@Accessors(chain = true)
public class WalletDO implements Serializable {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 司机ID
     */
    private Long driverId;
    /**
     * 钱包金额
     */
    private BigDecimal balance;
    /**
     * 支付密码，如果为空，不能支付，提示用户设置支付密码
     */
    private String password;
}
